﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMasterPage.Master" AutoEventWireup="true"
    CodeBehind="RegisterCustomer.aspx.cs" Inherits="InsuranceVehicle.RegisterCustomer" %>

<%@ Register Src="~/UserMenuControl.ascx" TagName="UserMenuControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    Register
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:UserMenuControl ID="UserMenuControl1" runat="server" SelectedMenu="register" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <center>
        <h2 style="font-size:25px">
            Please, enter your information in below form to become My Customer.</h2>
        <br />
    </center>
    <div style="width: 500px; margin: auto;">
        <%---------%>
        <div style="text-align: center">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Italic="True"
                Font-Size="Medium" ForeColor="Red" />
            <asp:Label ID="lblError" runat="server" Text="lblError" Font-Italic="True" Font-Size="Medium"
                ForeColor="Red" Visible="false"></asp:Label>
        </div>
        <%---------%>
        <asp:Label ID="lblFirstname" runat="server" Text="Firstname" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtFirstname" CssClass="text" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstname"
            Display="None" ErrorMessage="Please, Enter your Firstname" SetFocusOnError="True"></asp:RequiredFieldValidator>
        <p>
        </p>
        <%---------%>
        <asp:Label ID="lblLastname" runat="server" Text="Lastname" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtLastname" CssClass="text" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastname"
            Display="None" ErrorMessage="Please, enter you lastname" SetFocusOnError="True"></asp:RequiredFieldValidator>
        <p>
        </p>
        <%---------%>
        <asp:Label ID="Label1" runat="server" Text="Personal Identity" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtPersonalIdentity" CssClass="text" runat="server"></asp:TextBox>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPersonalIdentity"
                Display="None" ErrorMessage="Please, enter your Personal Identity" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPersonalIdentity"
                Display="None" ErrorMessage="Personal identity must be numberic" SetFocusOnError="True"
                ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
        </p>
        <%---------%>
        <asp:Label ID="lblAccount" runat="server" Text="Account" CssClass="label"></asp:Label>
        <br />
        <asp:TextBox ID="txtAccount" CssClass="text" runat="server"></asp:TextBox>
        <%---------%>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAccount"
                Display="None" ErrorMessage="Please, enter a your Account" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </p>
        <asp:Label ID="lblPassword" runat="server" Text="Password" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtPasword" CssClass="text" runat="server" TextMode="Password"></asp:TextBox>
        <%---------%>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtPasword"
                Display="None" ErrorMessage="Please, Enter your password" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtConPass"
                ControlToValidate="txtPasword" Display="None" ErrorMessage="Password and confirm password must be match"
                SetFocusOnError="True"></asp:CompareValidator>
        </p>
        <asp:Label ID="Label2" runat="server" Text="Confirm Password" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtConPass" CssClass="text" runat="server" TextMode="Password"></asp:TextBox>
        <%---------%>
        <p>
        </p>
        <asp:Label ID="lblJob" runat="server" Text="Job" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtJob" CssClass="text" runat="server"></asp:TextBox>
        <%---------%>
        <p>
        </p>
        <asp:Label ID="lblDob" runat="server" CssClass="label" Text="Day of Birth"></asp:Label><br />
        <br />
        Month:
        <asp:DropDownList ID="cbbMonth" runat="server" CssClass="dropdown">
        </asp:DropDownList>
        Day:
        <asp:DropDownList ID="cbbDay" runat="server" CssClass="dropdown">
        </asp:DropDownList>
        Year:
        <asp:DropDownList ID="cbbYear" runat="server" CssClass="dropdown">
        </asp:DropDownList>
        <%---------%>
        <p>
        </p>
        <asp:Label ID="Label7" runat="server" Text="Address" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtAddress" CssClass="text" runat="server"></asp:TextBox>
        <%---------%>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtAddress"
                Display="None" ErrorMessage="Please, enter your address" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </p>
        <asp:Label ID="Label8" runat="server" Text="Phone" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtPhone" CssClass="text" runat="server"></asp:TextBox>
        <%---------%>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtPhone"
                Display="None" ErrorMessage="Please, enter your phone number" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhone"
                Display="None" EnableTheming="True" ErrorMessage="Your phone number is invalid"
                SetFocusOnError="True" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
        </p>
        <asp:Label ID="Label9" runat="server" Text="Email" CssClass="label"></asp:Label><br />
        <asp:TextBox ID="txtEmail" runat="server" CssClass="text"></asp:TextBox>
        <%---------%>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEmail"
                Display="None" ErrorMessage="Please, enter your email"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtEmail"
                Display="None" ErrorMessage="Your email is invalid" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </p>
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="button" 
            OnClick="btnSubmit_Click" CausesValidation="False" />
        <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="button" CausesValidation="false"
            onclick="btnReset_Click" />
    </div>
</asp:Content>
